import React, { useEffect } from 'react'
import TopHeader from '../../components/Sanbox/TopHeader'
import SideMenu from '../../components/Sanbox/SideMenu'
import NewsRouter from '../../components/Sanbox/NewsRouter'
import { Layout } from 'antd';
import NProgress from 'nprogress'
import 'nprogress/nprogress.css'
import './NewSanbox.css'
const { Content } = Layout;
export default function Sanbox() {
    NProgress.start()

    useEffect(() => {
        NProgress.done()
    })
    return (
        <Layout>
            <SideMenu></SideMenu>
            <Layout className="site-layout">
                <TopHeader></TopHeader>
                <Content
                    className="site-layout-background"
                    style={{
                        margin: '24px 16px',
                        padding: 24,
                        minHeight: 280,
                    }}
                >
                    <NewsRouter />
                </Content>

            </Layout>

        </Layout>
    )
}
